package com.business.dynamic.remote;

import com.alibaba.fastjson.JSONObject;
import com.business.common.dto.R;
import com.business.user.entity.UserDetailsDto;
import com.business.dynamic.remote.fallback.UserFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;
import java.util.Set;

/**
 * 调用文件上传远程服务
 */
@FeignClient(name="service-user",fallback = UserFallback.class)
public interface UserRemote {

    @PostMapping("/user/details/queryName")
    R<UserDetailsDto> queryName(@RequestBody JSONObject params);


    @PostMapping("/user/details/getUserInfoById")
    R<UserDetailsDto> getUserInfoById(@RequestBody JSONObject params);


    @PostMapping("/user/details/queryNameList")
    R<List<UserDetailsDto>> queryNameList(@RequestBody JSONObject params);


    @PostMapping("/user/tag/queryTagList")
    R<List<String>> queryTagList(@RequestBody JSONObject params);


    @PostMapping("/user/concern/queryFriendList")
    R<Set<Integer>> queryFriendList(@RequestBody JSONObject params);
}
